package cn.iocoder.yudao.module.stock.mq.message;

import lombok.Data;

import javax.validation.constraints.NotNull;

/**
 * 库存信息 消息
 *
 * @author 徐煜东
 */
@Data
public class StockInfoSendMessage {
    public static final String TOPIC = "STOCK_ORDER_VIEW_RESPONSE_TOPIC"; // 重点：需要增加消息对应的 Topic
    @NotNull(message = "请求ID")
    private String requestId;

    @NotNull(message = "产品ID")
    private Long productId;

    @NotNull(message = "可用数量")
    private Integer availableQuantity;

    @NotNull(message = "锁定数量")
    private Integer lockedQuantity;
}
